#!/bin/bash
# 项目构建脚本
# 简化版本，主要功能委托给 build_tools/build.py

# 设置脚本目录
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
BUILD_SCRIPT="${SCRIPT_DIR}/build_tools/build.py"

# 设置环境变量
export BUILD_PROJECT_ROOT="$SCRIPT_DIR"
export PROJECT_BUILD_CONFIG="${SCRIPT_DIR}/build/project_config.py"
export PROJECT_FEATURE_CONFIG="${SCRIPT_DIR}/build/feature_def.txt"
export PROJECT_ENV_CONFIG="${SCRIPT_DIR}/build/setenv.sh"



# 委托给 build.py 处理所有参数
exec python3 "${BUILD_SCRIPT}" "$@"
